<?php
/**
 * 导航模型
 * @author 麦当苗儿 <zuojiazi@vip.qq.com>
 */

namespace Admin\Model;

use Think\Model;

class ChannelModel extends Model {
	protected $_validate = array(
		array('title', 'require', '标题不能为空', self::MUST_VALIDATE , 'regex', self::MODEL_BOTH),
		array('url', 'require', 'URL不能为空', self::MUST_VALIDATE , 'regex', self::MODEL_BOTH),
	);

	protected $_auto = array(
		array('create_time', NOW_TIME, self::MODEL_INSERT),
		array('update_time', NOW_TIME, self::MODEL_BOTH),
		array('status', '1', self::MODEL_INSERT),
	);

}
